package com.hinner.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.StringSerializer;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户信息表：驼峰命名转下划线。实体类用驼峰，表字段用下划线
 */
@TableName("sys_role_menu")
@Data
public class SysRoleMenu implements Serializable{

    @TableId(value = "id", type = IdType.AUTO)
    @JsonSerialize(using = StringSerializer.class)
    private Long id;
    @TableField(value = "role_id")
    private Long roleId;
    @TableField(value = "menu_id")
    private Long menuId;

}
